const webpack = require('webpack');

module.exports = {
    publicPath: '',
    devServer: {
        port: 8000,
        proxy: {
            '/api': {
                target: 'http://localhost:3000', //请求本地 需要jeecg-boot后台项目
                ws: false,
                changeOrigin: true,

            },
        }
    },

    configureWebpack: {
        plugins: [
            new webpack.ProvidePlugin({
                $: 'jquery',
                jQuery: 'jquery',
                'window.jQuery': 'jquery',
                Popper: ['popper.js', 'default']
            })
        ]
    }
};
